package com.chen.seckill.dao;

import com.chen.seckill.pojo.Item;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ItemMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Item record);

    int insertSelective(Item record);

    Item selectByPrimaryKey(Integer id);

    List<Item> listItem();

    int updateByPrimaryKeySelective(Item record);

    int updateByPrimaryKey(Item record);

    int increaseSales(@Param("id")Integer id, @Param("amount") Integer amount);
}